<select name="{name}" id="{name}"{onchange}>
<?php
foreach ($items as $item)
{
	if ($item->{BLOCK_BLOCK_ID}==$value)
		$sel = " selected";
	else
		$sel = "";
	echo "<option value='".$item->{BLOCK_BLOCK_ID}."'".$sel.">".$item->{BLOCK_NAME}."</option>\n";
}
?>
</select>